<!--
 * @Author: long
 * @Date: 2021-08-10 14:31:14
 * @LastEditTime: 2021-09-28 17:12:34
 * @LastEditors: Please set LastEditors
 * @Description: 角色编辑
 * @FilePath: \inventory-apie:\hjimi\人脸辨识云\html\gitlab\pc\faceCloudWebsite\src\views\iam-manage\iam-role\components\editRole.vue
-->
<template>
        <RoleTable :formParams="formParams" :submitType="submitType" />
</template>
<script>
import RoleTable from './components/RoleTable.vue'
export default {
    data() {
        return {
             submitType: ['edit', 'details'],
             formParams: {
               roleName: '',
               roleDescribe: ''
              }
        }
    },
    components: {
        RoleTable,
    },
    created() {
        let querys =this.$route.query 
        if(querys.hasOwnProperty('roleName')) {
            this.formParams = {
                roleName: querys.roleName,
                roleDescribe: querys.roleDescribe
            }
        }
    }
}
</script>